from tkinter import *
a = int(input())
b = int(input())
c = int(input())

coords = [0, 0, 10, 0, 10, 10, 20, 10, 20, 20, 10, 20, 10, 30, 0, 30]



for i in range(0, len(coords), 2):
    coords[i]*=c
    coords[i]+=a

for i in range(1, len(coords), 2):
    coords[i]*=c
    coords[i]+=b


if (c * 20 + a) > 500 or (c * 30 + b) > 500:
    print('Размер фигуры превышает максимальный размер поля')
else:
    root = Tk()
    root.title("ИТ марафон")
    root.geometry("500x500")
    canvas = Canvas(bg="white", width=500, height=500)
    canvas.pack(anchor=CENTER, expand=1)
    canvas.create_polygon(coords)
    root.mainloop()
